﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020007D3 RID: 2003
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetRogueAdventureRoomInfoScRsp : IMessage<GetRogueAdventureRoomInfoScRsp>, IMessage, IEquatable<GetRogueAdventureRoomInfoScRsp>, IDeepCloneable<GetRogueAdventureRoomInfoScRsp>, IBufferMessage
	{
		// Token: 0x17001984 RID: 6532
		// (get) Token: 0x060059F0 RID: 23024 RVA: 0x000F2163 File Offset: 0x000F0363
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetRogueAdventureRoomInfoScRsp> Parser
		{
			get
			{
				return GetRogueAdventureRoomInfoScRsp._parser;
			}
		}

		// Token: 0x17001985 RID: 6533
		// (get) Token: 0x060059F1 RID: 23025 RVA: 0x000F216A File Offset: 0x000F036A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetRogueAdventureRoomInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001986 RID: 6534
		// (get) Token: 0x060059F2 RID: 23026 RVA: 0x000F217C File Offset: 0x000F037C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetRogueAdventureRoomInfoScRsp.Descriptor;
			}
		}

		// Token: 0x060059F3 RID: 23027 RVA: 0x000F2183 File Offset: 0x000F0383
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRogueAdventureRoomInfoScRsp()
		{
		}

		// Token: 0x060059F4 RID: 23028 RVA: 0x000F218C File Offset: 0x000F038C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRogueAdventureRoomInfoScRsp(GetRogueAdventureRoomInfoScRsp other) : this()
		{
			this.adventureRoomInfo_ = ((other.adventureRoomInfo_ != null) ? other.adventureRoomInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060059F5 RID: 23029 RVA: 0x000F21D8 File Offset: 0x000F03D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRogueAdventureRoomInfoScRsp Clone()
		{
			return new GetRogueAdventureRoomInfoScRsp(this);
		}

		// Token: 0x17001987 RID: 6535
		// (get) Token: 0x060059F6 RID: 23030 RVA: 0x000F21E0 File Offset: 0x000F03E0
		// (set) Token: 0x060059F7 RID: 23031 RVA: 0x000F21E8 File Offset: 0x000F03E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AdventureRoomInfo AdventureRoomInfo
		{
			get
			{
				return this.adventureRoomInfo_;
			}
			set
			{
				this.adventureRoomInfo_ = value;
			}
		}

		// Token: 0x17001988 RID: 6536
		// (get) Token: 0x060059F8 RID: 23032 RVA: 0x000F21F1 File Offset: 0x000F03F1
		// (set) Token: 0x060059F9 RID: 23033 RVA: 0x000F21F9 File Offset: 0x000F03F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060059FA RID: 23034 RVA: 0x000F2202 File Offset: 0x000F0402
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetRogueAdventureRoomInfoScRsp);
		}

		// Token: 0x060059FB RID: 23035 RVA: 0x000F2210 File Offset: 0x000F0410
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetRogueAdventureRoomInfoScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.AdventureRoomInfo, other.AdventureRoomInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060059FC RID: 23036 RVA: 0x000F2260 File Offset: 0x000F0460
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.adventureRoomInfo_ != null)
			{
				num ^= this.AdventureRoomInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060059FD RID: 23037 RVA: 0x000F22B5 File Offset: 0x000F04B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060059FE RID: 23038 RVA: 0x000F22BD File Offset: 0x000F04BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060059FF RID: 23039 RVA: 0x000F22C8 File Offset: 0x000F04C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this.adventureRoomInfo_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.AdventureRoomInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005A00 RID: 23040 RVA: 0x000F2324 File Offset: 0x000F0524
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.adventureRoomInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.AdventureRoomInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005A01 RID: 23041 RVA: 0x000F237C File Offset: 0x000F057C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetRogueAdventureRoomInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.adventureRoomInfo_ != null)
			{
				if (this.adventureRoomInfo_ == null)
				{
					this.AdventureRoomInfo = new AdventureRoomInfo();
				}
				this.AdventureRoomInfo.MergeFrom(other.AdventureRoomInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005A02 RID: 23042 RVA: 0x000F23E4 File Offset: 0x000F05E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005A03 RID: 23043 RVA: 0x000F23F0 File Offset: 0x000F05F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 106U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.adventureRoomInfo_ == null)
						{
							this.AdventureRoomInfo = new AdventureRoomInfo();
						}
						input.ReadMessage(this.AdventureRoomInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040022FE RID: 8958
		private static readonly MessageParser<GetRogueAdventureRoomInfoScRsp> _parser = new MessageParser<GetRogueAdventureRoomInfoScRsp>(() => new GetRogueAdventureRoomInfoScRsp());

		// Token: 0x040022FF RID: 8959
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002300 RID: 8960
		public const int AdventureRoomInfoFieldNumber = 13;

		// Token: 0x04002301 RID: 8961
		private AdventureRoomInfo adventureRoomInfo_;

		// Token: 0x04002302 RID: 8962
		public const int RetcodeFieldNumber = 7;

		// Token: 0x04002303 RID: 8963
		private uint retcode_;
	}
}
